import fetch from 'utils/fetch'

export default {
  // 获取订单列表
  getOrderList (params) {
    return fetch.post('/pc/order/list', params)
  },
  // 获取基础配置
  getOrderDetails (params) {
    return fetch.post('/pc/order/details', params)
  },
  // 备注订单
  remarkOrder (params) {
    return fetch.post('/pc/order/remark', params)
  },
  // 关闭订单
  closeOrder (params) {
    return fetch.post('/pc/order/close', params)
  },
  // 发送app推送
  sendMessage (params) {
    return fetch.post('/pc/order/push', params)
  },
  // 订单跟踪-物流信息
  logistics (params) {
    return fetch.post('/pc/order/logistics/list', params)
  },
  // 添加定制订单
  addSpeOrder (params) {
    return fetch.post('/pc/order/custom/add', params)
  },
  // 备注订单
  editOrderGoods (params) {
    return fetch.post('/pc/order/editOrderCommodity', params)
  },
  // 订单状态设置
  infrastructure (params) {
    return fetch.post('/pc/order/infrastructure', params)
  },
  // 订单状态设置详情
  infrastructureDetail (params) {
    return fetch.post('/pc/order/infrastructure/details', params)
  },
  // 修改发票
  changeInvoice (params) {
    return fetch.post('/pc/order/change/invoice', params)
  },
  // 修改收货人信息
  changeReceiveInfo (params) {
    return fetch.post('/pc/order/change/receiveInfo', params)
  },
  // 修改订单商品信息
  changeOrderCommodity (params) {
    return fetch.post('/pc/order/editOrderCommodity', params)
  },
  // 修改订单费用信息
  changeOrderCostInfo (params) {
    return fetch.post('/pc/order/change/cost', params)
  },
  // 查询发货单信息
  orderDeliveredInfo (params) {
    return fetch.post('/pc/order/deliveredInfo', params)
  },
  // 查询物流信息
  getLogisticsInfo (params) {
    return fetch.post('/pc/order/logistics/list', params)
  },
  // 退款接口
  refund (params) {
    return fetch.post('/pc/order/details/refund', params)
  },
  // 退款拒绝
  refuse (params) {
    return fetch.post('pc/order/audit/refund', params)
  },
  // 定制订单接口
  addCustomOrder (params) {
    return fetch.post('/pc/order/custom/add', params)
  },
  // 商品分类树
  getCategoryTree (params) {
    return fetch.post('/pc/commodity/category/tree', params)
  },
  // 用户查收货地址
  getAddressList (params) {
    return fetch.post('/pc/order/user/address/list', params)
  },
  // 订单部分发货
  orderDelivery (params) {
    return fetch.post('/pc/order/delivery', params)
  },
  // 对账结算列表
  getOrderAccountList (params) {
    return fetch.post('/pc/order/account/list', params)
  },
  // 批量对账
  checkAccount (params) {
    return fetch.post('/pc/order/account/batch/check', params)
  },
  // 批量冲正
  reversalAccount (params) {
    return fetch.post('/pc/order/account/batch/reversal', params)
  },
  // 编辑对账单
  updateReconciliation (params) {
    return fetch.post('pc/order/account/update', params)
  },
  // 退款详情
  getRefundDetailInfo (params) {
    return fetch.post('pc/order/refund/details', params)
  }
}
